public class trap {
    public static void main(String[] args) {
        Solution solution = new Solution();
        int[] arr = new int[]{0,1,0,2,1,0,1,3,2,1,2,1};
        System.out.println(solution.trap(arr));

    }
}
